import request from '@/utils/request'

// 查询物资接收列表
export function listReceive(query) {
  return request({
    url: '/aid/receive/list',
    method: 'get',
    params: query
  })
}

// 查询物资接收详细
export function getReceive(receiveId) {
  return request({
    url: '/aid/receive/' + receiveId,
    method: 'get'
  })
}

// 新增物资接收
export function addReceive(data) {
  return request({
    url: '/aid/receive',
    method: 'post',
    data: data
  })
}

// 修改物资接收
export function updateReceive(data) {
  return request({
    url: '/aid/receive',
    method: 'put',
    data: data
  })
}

// 删除物资接收
export function delReceive(receiveId) {
  return request({
    url: '/aid/receive/' + receiveId,
    method: 'delete'
  })
}

// 导出物资接收
export function exportReceive(query) {
  return request({
    url: '/aid/receive/export',
    method: 'get',
    params: query
  })
} 